package com.zhima.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "zhima-oj-auth")
public class ZhimaAuthProperties {
    // 默认2小时
    private Integer accessTokenValiditySeconds = 2 * 60 * 60;
    // 默认3天
    private Integer refreshTokenValiditySeconds = 3 * 24 * 60 * 60;
}
